package cn.hfatec.shms.web.ss.ssMonitor.dao;

import java.util.List;

import cn.hfatec.shms.web.ss.ssMonitor.model.SsMonitor;
import cn.hfatec.mybatis.mapper.SqlMapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;

import cn.hfatec.shms.web.ss.ssMonitor.model.SsMonitorParams;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Component("SsMonitorDao")
public interface SsMonitorDao extends SqlMapper {

    /**
     *
     * 查询数据
     *
    */
    public List querySsMonitor(@Param("params") SsMonitorParams params);
    public SsMonitor querySsMonitors(@Param("params") SsMonitorParams params);
    public List<SsMonitor> inUpSsMonitor(@Param("monitorStart")String monitorStart,@Param("monitorEnd")String monitorEnd);
    public SsMonitor selectSsMonitor(@Param("nian")String nian,@Param("weekNum")String weekNum,@Param("customName")String customName,@Param("phone")String phone);

    /**
     *
     * 根据主键获取数据
     *
     */
    public SsMonitor getSsMonitorById(Integer id);

    /**
     *
     * 插入数据
     *
     */
    public void insert(SsMonitor ssMonitor);

    /**
     *
     * 删除数据
     *
     */
    public void delete(Integer id);

    public void deletes(@Param("nian")String nian,@Param("weekNum")String weekNum,@Param("customName")String customName,@Param("phone")String phone);


    /**
     *
     * 更新数据
     *
     */
    public void update(SsMonitor ssMonitor);
}
